<?php defined('ROOT_DIR') or die('Access denied!');?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
	<meta name="author" content="暮雨秋晨" />
	<meta charset="UTF-8" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
    <meta name="description" content="<?php echo $config['desc'];?>" />
    <meta name="keywords" content="<?php echo $config['keywd'];?>" />
	<title><?php echo $title;?></title>
    <link rel="stylesheet" href="/Application/static/css/main.css" />
    <script src="/Application/static/js/common.js"></script>
</head>
<body>
<header>
<ul>
<li><a href="<?php echo $this->urlCreate('admin','index');?>" style="z-index: 50;">管理主页</a></li>
<li><a href="#" style="z-index: 49;">系统配置</a></li>
</ul>
</header>
<div id="main">
<h1 style="text-align: center;">系统配置</h1>
<form action="" method="post">
<label for="title">首页标题</label>
<input type="text" id="title" name="title" style="margin: 1em;display: block;width: 90%;height: 24px;padding-left: 3px;" value="<?php echo $config['title'];?>" />
<label for="name">网站名称</label>
<input type="text" id="name" name="name" style="margin: 1em;display: block;width: 90%;height: 24px;padding-left: 3px;" value="<?php echo $config['name'];?>" />
<label for="url">站点网址(带http://)</label>
<input type="text" id="url" name="url" style="margin: 1em;display: block;width: 90%;height: 24px;padding-left: 3px;" value="<?php echo $config['url'];?>" />
<label for="desc">站点描述(SEO)</label>
<input type="text" id="desc" name="desc" style="margin: 1em;display: block;width: 90%;height: 24px;padding-left: 3px;" value="<?php echo $config['desc'];?>" />
<label for="keywd">关键字(SEO)</label>
<input type="text" id="keywd" name="keywd" style="margin: 1em;display: block;width: 90%;height: 24px;padding-left: 3px;" value="<?php echo $config['keywd'];?>" />
<label for="vip">VIP价格</label>
<input type="text" id="vip" name="vip" style="margin: 1em;display: block;width: 90%;height: 24px;padding-left: 3px;" value="<?php echo $config['vip'];?>" />
<label for="uppre">允许上传的文件类型(使用英文分号分割)</label>
<input type="text" id="uppre" name="uppre" style="margin: 1em;display: block;width: 90%;height: 24px;padding-left: 3px;" value="<?php echo $config['upload_prefix'];?>" />
<span style="margin: 3px 1em 3px 0;color: red;font-size: 0.6em;">如果不做修改就提交，会报错。</span>
<input type="submit" name="submit" value="提交" style="margin: 1em;display: block;width: 64px;height: 24px;margin-left: 3em;" />
</form>
</div>

<footer>
&copy;<a href="http://www.doubear.com">Doubear</a> Driven by <a href="http://www.domvc.com">DoMVC</a> framework
</footer>
</body>
</html>